import request from "@/util/http";
import qs from "qs";

export default {
  //渲染页面接口
  gain(forms) {
    return request({
      method: "get",
      params: {
        _gp: "admin.appraise",
        _mt: "getAppraiseList",
        userName: forms.userName,
        id: forms.id,
        spuName: forms.spuName,
        orderId: forms.orderId,
        score: forms.score,
        content: forms.content,
        pageNo: forms.pageNo,
        limit: forms.limit
      }
    });
  },
  //删除接口
  cancel(form) {
    return request({
      method: "post",
      data: qs.stringify({
        _gp: "admin.appraise",
        _mt: "deleteAppraise",
        id: form.id
      })
    });
  }
};
